<?
session_start();

if( isset($_GET['auth_user_name'])) {
	$_SESSION["uid"] = $_GET['auth_user_name'];

} else {
	if( !isset($_SESSION["uid"]) ) {
		echo "<script> window.location = 'login.php'; </script>";
		exit;
	}
}
$base_url = "";
if($_SERVER['HTTP_HOST'] == "localhost" || $_SERVER['HTTP_HOST'] == "test") {
	$base_url = "http://" . $_SERVER['HTTP_HOST'];
} else {
	$base_url = "http://www.taobaobox.cn/jinxun";
}
?>